<template>
	<view class="center">
		<view class="list">
			<view class="item" v-for="(item,index) in list" :key="index">
				{{item.name}}
			</view>
		</view>
	</view>
</template>

<script>
	import {
		ServiceList
	} from "@/api/user.js"
	export default {
		data() {
			return {
				list: []
			}
		},
		onLoad(e) {
			this.ServiceList(e.type)
		},
		methods: {
			ServiceList(type) {
				ServiceList({
					type: type
				}).then(res => {
					this.list = res.data
				})
			}
		}
	}
</script>

<style lang="scss">
	page {
		background: #efefef;
	}

	.item {
		background: #fff;
		font-size: 14px;
		text-align: center;
		height: 45px;
		line-height: 45px;
		margin-top: 8px;
	}
</style>